#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


class StudentSystem:
    def __init__(self):
        self.stus = list()

    def add_stu(self):
        name = input('请输入学生姓名：')
        tel = input('请输入手机号：')
        address = input('请输入地址：')

        new_dict = dict()

        new_dict['name'] = name
        new_dict['tel'] = tel
        new_dict['address'] = address

        self.stus.append(new_dict)


# 创建对象
stu_sys = StudentSystem()

for _ in range(3):
    stu_sys.add_stu()


# 把录入的学生信息打印出来
for item in stu_sys:  # 当前这个类的对象不是一个可迭代对象 会报错
    print(item)
